package com.b.service;

import com.b.domain.ProductCategory;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;

import java.util.List;

public interface ProductCategoryService{


    boolean deleteByPrimaryKey(Integer id);

    int insert(ProductCategory record);

    int insertSelective(ProductCategory record);

    ProductCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductCategory record);

    int updateByPrimaryKey(ProductCategory record);

    List<ProductCategory> getAll();

    SearchPage<ProductCategory> findProductCategoryByTypeLike(String type, PageRequest pageRequest);

    boolean add(ProductCategory productCategory);

    boolean update(ProductCategory productCategory);
}
